package com.chaos.system.api.feign;

import com.chaos.framework.model.constant.FeignConstants;
import com.chaos.framework.model.dto.ID;
import com.chaos.framework.model.dto.result.data.BooleanResult;
import com.chaos.framework.model.dto.result.data.DataResult;
import com.chaos.framework.model.dto.result.list.ListResult;
import com.chaos.system.api.constant.ServiceNameConstant;
import com.chaos.system.api.data.TUserData;
import com.chaos.system.api.data.UserSessionKeyData;
import com.chaos.system.api.dto.BaiduLocationDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;



@FeignClient(value = ServiceNameConstant.SYSTEM_SERVICE)
public interface BaiduFeign {

    @PostMapping(FeignConstants.FEIGN_PREFIX + "baidu/location")
    @ApiOperation(value = "根据ip解析地址", httpMethod = "POST")
    DataResult<BaiduLocationDto> location(@RequestBody String ip);


}